It's always derived from transient-for so no need to pass it.
https://bugzilla.gnome.org/show_bug.cgi?id=771117
}
static GdkWindow *
-get_real_parent_and_translate (GdkWindow *child,
- GdkWindow *parent,
- gint *x,
- gint *y)
+get_real_parent_and_translate (GdkWindow *window,
+ gint *x,
+ gint *y)
{
+ GdkWindowImplWayland *impl = GDK_WINDOW_IMPL_WAYLAND (window->impl);
+ GdkWindow *parent = impl->transient_for;
+
while (parent &&
!gdk_window_has_native (parent) &&
gdk_window_get_effective_parent (parent))
real_anchor_rect_x = impl->pending_move_to_rect.rect.x;
real_anchor_rect_y = impl->pending_move_to_rect.rect.y;
parent = get_real_parent_and_translate (window,
- impl->transient_for,
&real_anchor_rect_x,
&real_anchor_rect_y);